package chixing.day09.homework.work7;

// 只需密码
public class NormalUser extends User implements Authenticatable{

    public NormalUser() {
    }

    public NormalUser(String userName, String userPassword) {
        super(userName, userPassword);
    }

    @Override
    public boolean login(String username, String password) {
        if (this.getUserName().equals(username) && this.getUserPassword().equals(password))
            return true;
        return false;
    }


}
